package com.link.base.base.language.service;

import com.alibaba.fastjson.JSONObject;
import com.link.base.base.language.model.Language;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * 语言包
 *
 * @author 阳晓琳
 * @date 2020-08-27 11:01:53
 */
public interface  LanguageService extends BasicService<Language> {

    JSONObject langPackage(Language language) throws Exception;

    List<Language> langList(Language language) throws Exception;

    /**
     * 更新此语言包到其它语言包
     *
     * @author 刘启鑫
     * @date 2020/9/9 13:45
     */
    void updateOtherLanguage(Language language) throws Exception;

    void deleteByIdCascade(Language entity);

    public void refreshCache(Language language) throws Exception;
}
